<html>
<head>
    <meta name="decorator" content="/decorators/blank"/>
</head>
<body>
<div class="modal fade" id="roleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
     data-backdrop="static" data-keyboard="false">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                        aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="exampleModalLabel">分配角色</h4>
            </div>
            <!-- BEGIN FORM-->

            <div class="modal-body">
                <form action="/permission/user/setRole" method="post" class="form-horizontal" id="roleForm">
                    <div class="form-group form-md-checkboxes">
                        <ul >
                            <div class="md-checkbox-inline">
                                <div class="md-checkbox" style="margin: 5px; font-size: 12px">
                                    <#list roles as role>
                                    <input class="md-check" type="checkbox" value="${role.id}" name="roleName" id="checkbox_${role.id}">
                                    <label for="checkbox_${role.id}">
                                        <span class="inc"></span>
                                        <span class="check"></span>
                                        <span class="box" style="width: 12px;height: 12px; margin-top: 5px"></span> ${role.roleName}
                                    </label>
                                </#list>
                            </div>
                    </div>
                    </ul>
            </div>

            </form>
        </div>
        <div class="modal-footer">
            <button type="button" id="submitBtn" class="btn btn-primary">提交</button>
            <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>

        </div>
    </div>
</div>
</div>
</body>
</html>

